project(libgammaeffects LANGUAGES CXX C)
set(TARGET libgammaeffects)

set(CMAKE_INCLUDE_CURRENT_DIR ON)

set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)

set(HEADERS
    color_math.hpp
    DFGammaEffects.hpp
)

set(SOURCES
    color_math.cpp
    GammaEffects.cpp
)

add_library(${TARGET}
    SHARED
    ${SOURCES}
    ${HEADERS}
)

target_include_directories(${TARGET}
    PUBLIC
        $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>
        $<INSTALL_INTERFACE:${INCLUDE_INSTALL_DIR}>
)

target_link_directories(${TARGET}
    INTERFACE
        $<BUILD_INTERFACE:${CMAKE_CURRENT_BINARY_DIR}>
        $<INSTALL_INTERFACE:${CMAKE_INSTALL_LIBDIR}>
)

target_link_libraries(${TARGET}
    PUBLIC
    Qt${QT_VERSION_MAJOR}::Core
    libwayqt
)

# install(TARGETS ${TARGET} DESTINATION ${CMAKE_INSTALL_BINDIR})
